import { CommonEntity } from '../../../dto/common.entity';
import { Column, Entity } from 'typeorm';

@Entity('timetable')
export class Timetable extends CommonEntity {
  @Column({
    comment: '上课日期',
    type: 'timestamp',
  })
  classDay: Date;

  @Column({
    comment: '上课时间',
    nullable: true,
  })
  startTime: string;

  @Column({
    comment: '结束时间',
    nullable: true,
  })
  endTime: string;

  @Column({
    comment: '人数限制',
    nullable: true,
  })
  limitNumber: number;

  @Column({
    comment: '所属门店',
    nullable: true,
  })
  orgId: string;

  @Column({
    comment: '所属课程',
    nullable: true,
  })
  courseId: string;
}
